package com.panasonic.web.domain.cms;

import com.panasonic.common.annotation.Excel;
import com.panasonic.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 附件对象 cms_attachment
 * 
 * @author lwf
 * @date 2021-11-12
 */
public class CmsAttachment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 文件类型 */
    @Excel(name = "文件类型")
    private String fileType;


    /** 文件描述 */
    @Excel(name = "文件描述")
    private String fileDesc;

    /** 文件名称 */
    @Excel(name = "文件名称")
    private String fileName;

    /** url */
    @Excel(name = "url")
    private String fileUrl;

    /** 文件空间 */
    @Excel(name = "文件空间")
    private String size;

    /**
     * 分类
     */
    private Integer category;
    /** 文章id */
    @Excel(name = "文章id")
    private Long articleId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFileType(String fileType) 
    {
        this.fileType = fileType;
    }

    public String getFileType() 
    {
        return fileType;
    }
    public void setFileDesc(String fileDesc) 
    {
        this.fileDesc = fileDesc;
    }

    public String getFileDesc() 
    {
        return fileDesc;
    }
    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }
    public void setFileUrl(String fileUrl) 
    {
        this.fileUrl = fileUrl;
    }

    public String getFileUrl() 
    {
        return fileUrl;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public void setArticleId(Long articleId)
    {
        this.articleId = articleId;
    }

    public Long getArticleId() 
    {
        return articleId;
    }

    public Integer getCategory() {
        return category;
    }

    public void setCategory(Integer category) {
        this.category = category;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fileType", getFileType())
            .append("fileDesc", getFileDesc())
            .append("fileName", getFileName())
            .append("fileUrl", getFileUrl())
            .append("size", getSize())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("articleId", getArticleId())
            .toString();
    }
}
